package cn.tedu.egweibo04.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

public class Comment {
    @ApiModelProperty(value = "评论内容")
    private String content;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
    private Date created;
    @ApiModelProperty(value = "微博id")
    private Long weiboId;
    @ApiModelProperty(value = "用户id")
    private Long userId;

    @Override
    public String toString() {
        return "Comment{" +
                "content='" + content + '\'' +
                ", created=" + created +
                ", weiboId=" + weiboId +
                ", userId=" + userId +
                '}';
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Long getWeiboId() {
        return weiboId;
    }

    public void setWeiboId(Long weiboId) {
        this.weiboId = weiboId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
